package com.bulletelc.apollopre.module.display.product.details.introduce;

import com.bulletelc.apollopre.entity.OrderConfirmBean;
import com.bulletelc.apollopre.entity.ProductDetailAll;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2018/01/15
 * desc  : TODO
 */

public interface IntroduceContract {

    interface View extends IView {
        void onSuccess(ProductDetailAll productDetailAll);
        void onFail(String fail);
        void onError(String error);

        void onSuccessAddCart();
        void onFailAddCart(String fail);
        void onErrorAddCart(String error);

        void onSuccessBuyNow(OrderConfirmBean confirmBean);
        void onFailBuyNow(String fail);
        void onErrorBuyNow(String error);

    }

    interface Presenter extends IPresenter<View> {
        void addCart(String json,String token);

        void buyNow(String json,String token);

        void getProductDetails(String productId);

    }

}
